package zhoug.demo.zui.ui;

import android.os.Bundle;

import zhoug.common.utils.ToastUtils;
import zhoug.zui.ZUIExpandButton;
import zhoug.demo.zui.R;

import androidx.appcompat.app.AppCompatActivity;

public class ExpandButtonActivity extends AppCompatActivity {

    private ZUIExpandButton mExpandButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_expand_button);
        findViews();

        mExpandButton.setOnExpandChangeListener((v,b)-> {
            ToastUtils.toastShortCenter(b ? "展开" : "折叠");
        });
    }

    private void findViews() {
        mExpandButton = findViewById(R.id.expandButton);
    }
}